The main loop task profiling sampler collects interval measurement to produce #MainLoopTaskProfilerSampleData sample. More...
#include <kanzi/core/profiling/main_loop_profiler_sample.hpp>
Public Member Functions | |
MainLoopTaskProfilingSampler (size_t counter) | |
Constructor. More... | |
MainLoopTaskProfilerSampleData | getSampleData () |
Returns #MainLoopTaskProfilerSampleData sample including interval measurement data and main loop counter. More... | |
Public Member Functions inherited from kanzi::IntervalProfilingSampler | |
void | start () |
Starts measuring time interval duration. More... | |
void | stop () |
Finishes measuring time interval duration. More... | |
IntervalProfilerSampleData | getSampleData () |
Returns IntervalProfilerSampleData sample including interval measurement data. More... | |
Additional Inherited Members | |
Protected Attributes inherited from kanzi::IntervalProfilingSampler | |
chrono::high_resolution_clock::time_point | m_startTimePoint |
The point in time when interval measurement started. More... | |
chrono::high_resolution_clock::time_point | m_endTimePoint |
The point in time when interval measurement finished. More... | |
The main loop task profiling sampler collects interval measurement to produce #MainLoopTaskProfilerSampleData sample.
The #ProfilingScopeHelper uses sampler class to measure time spent executing scope which is profiled. For detailed information on how the sampler is used in scope profiling, refer to #ProfilingScopeHelper.
|
inlineexplicit |
Constructor.
Initializes main loop counter to include it into #MainLoopTaskProfilerSampleData sample.
counter | The main loop counter. |
|
inline |
Returns #MainLoopTaskProfilerSampleData sample including interval measurement data and main loop counter.